package com.cskt.petproject178.mapper;

import com.cskt.petproject178.pojo.entity.Spu;
import com.cskt.petproject178.pojo.param.SearchProductParam;
import com.cskt.petproject178.pojo.vo.*;


import java.util.List;

public interface SpuMapper {
    int deleteByPrimaryKey(Long id);

    int insertSelective(Spu record);

    Spu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Spu record);

    List<SearchProductVO> getSearchProductVOByParam(SearchProductParam param);

    Integer getSearchProductVOByParamCount(SearchProductParam param);

    SpuVO getSpuVOById(Long spuId);


    ShoppingCartVO getSpuProductBySkuId(Long skuId);


}